/**
 *  iBizSys 5.0 机器人生产代码（不要直接修改当前代码）
 *  http://www.ibizsys.net
 */
package com.sa.litetwo.app.srv.card.ctrlmodel;


import java.util.ArrayList;
import java.util.List;
import net.ibizsys.paas.util.StringHelper;
import net.ibizsys.paas.web.AjaxActionResult;
import net.ibizsys.paas.web.WebContext;
import net.ibizsys.paas.util.GlobalContext;
import net.ibizsys.paas.core.IDEDataSetCond;
import net.ibizsys.paas.core.DEDataSetCond;
import net.ibizsys.paas.core.DEDataSetFetchContext;
import net.ibizsys.paas.db.DBFetchResult;
import net.ibizsys.paas.web.WebContext;
import net.ibizsys.paas.util.DataTypeHelper;
import net.ibizsys.paas.data.IDataObject;
import net.ibizsys.paas.datamodel.DataItemModel;
import net.ibizsys.paas.datamodel.DataItemParamModel;
import net.ibizsys.paas.entity.EntityFieldError;
import net.ibizsys.paas.entity.EntityError;
import net.ibizsys.paas.demodel.IDataEntityModel;
import net.ibizsys.paas.demodel.DEModelGlobal;

import net.ibizsys.paas.control.form.FormError;
import net.ibizsys.paas.control.form.IFormItem;
import net.ibizsys.paas.control.form.FormItemError;
import net.ibizsys.paas.ctrlmodel.EditFormItemModel;
import net.ibizsys.paas.data.IDataObject;
import net.ibizsys.paas.entity.EntityError;
import net.ibizsys.paas.entity.IEntity;
import net.ibizsys.paas.service.IService;

/**
 * 实体[简历信息卡]编辑表单[form]部件模型
 */
public class GG_CARDMain2EditFormModel extends net.ibizsys.paas.ctrlmodel.EditFormModelBase{
   
    public GG_CARDMain2EditFormModel()  {
        super();
        this.setName("form");      
    }

      private com.sa.litetwo.srv.card.demodel.GG_CARDDEModel gG_CARDDEModel;
     protected  com.sa.litetwo.srv.card.demodel.GG_CARDDEModel getGG_CARDDEModel() {
            if(this.gG_CARDDEModel==null){
                try
                {
                     this.gG_CARDDEModel = (com.sa.litetwo.srv.card.demodel.GG_CARDDEModel)DEModelGlobal.getDEModel("com.sa.litetwo.srv.card.demodel.GG_CARDDEModel");
                }
                catch(Exception ex)
                {
                }
            }
           return this.gG_CARDDEModel;
      }

      @Override
      public IDataEntityModel getDEModel() {
          return this.getGG_CARDDEModel();
      }

    /**
     * 准备表单项模型
     * @throws Exception
     */
    protected void prepareFormItems()throws Exception
    {
    	super.prepareFormItems();
    	IFormItem iFormItem = null;
        // srfupdatedate 
		iFormItem = this.createFormItem("srfupdatedate");
		if(iFormItem==null)
		{
			EditFormItemModel formItem = new EditFormItemModel();
			formItem.setForm(this);
			formItem.setName("srfupdatedate");
			formItem.setDEFName("UPDATEDATE");
			formItem.setCaption("更新时间");
			formItem.setCapLanResTag("DEF.LNAME.UPDATEDATE");

			//设置数据项参数
			DataItemModel dataItem = new DataItemModel(); 
			dataItem.setName("srfupdatedate");
	        dataItem.setDataType(5);
	        dataItem.setFormat("%1$s");
	        //注册参数
	        DataItemParamModel dataItemParam0 = new DataItemParamModel();
	        dataItemParam0.setName("UPDATEDATE");
	        dataItemParam0.setFormat("%1$tY-%1$tm-%1$td %1$tH:%1$tM:%1$tS");
	        dataItem.addDataItemParam(dataItemParam0);
			formItem.setDataItem(dataItem);
			formItem.init();
			iFormItem = formItem;
		}
		this.registerFormItem(iFormItem);
        // srforikey 
		iFormItem = this.createFormItem("srforikey");
		if(iFormItem==null)
		{
			EditFormItemModel formItem = new EditFormItemModel();
			formItem.setForm(this);
			formItem.setName("srforikey");
			formItem.setDEFName("");

			//设置数据项参数
			DataItemModel dataItem = new DataItemModel(); 
			dataItem.setName("srforikey");
	        dataItem.setFormat("%1$s");
			formItem.setDataItem(dataItem);
			formItem.init();
			iFormItem = formItem;
		}
		this.registerFormItem(iFormItem);
        // srfkey 
		iFormItem = this.createFormItem("srfkey");
		if(iFormItem==null)
		{
			EditFormItemModel formItem = new EditFormItemModel();
			formItem.setForm(this);
			formItem.setName("srfkey");
			formItem.setDEFName("GG_CARDID");
			formItem.setCaption("信息卡标识");
			formItem.setCapLanResTag("DEF.LNAME.GG_CARDID");

			//设置数据项参数
			DataItemModel dataItem = new DataItemModel(); 
			dataItem.setName("srfkey");
	        dataItem.setDataType(25);
	        dataItem.setFormat("%1$s");
	        //注册参数
	        DataItemParamModel dataItemParam0 = new DataItemParamModel();
	        dataItemParam0.setName("GG_CARDID");
	        dataItemParam0.setFormat("%1$s");
	        dataItem.addDataItemParam(dataItemParam0);
			formItem.setDataItem(dataItem);
			formItem.init();
			iFormItem = formItem;
		}
		this.registerFormItem(iFormItem);
        // srfmajortext 
		iFormItem = this.createFormItem("srfmajortext");
		if(iFormItem==null)
		{
			EditFormItemModel formItem = new EditFormItemModel();
			formItem.setForm(this);
			formItem.setName("srfmajortext");
			formItem.setDEFName("GG_CARDNAME");
			formItem.setCaption("名称");
			formItem.setCapLanResTag("DEF.LNAME.GG_CARD.GG_CARDNAME");

			//设置数据项参数
			DataItemModel dataItem = new DataItemModel(); 
			dataItem.setName("srfmajortext");
	        dataItem.setDataType(25);
	        dataItem.setFormat("%1$s");
	        //注册参数
	        DataItemParamModel dataItemParam0 = new DataItemParamModel();
	        dataItemParam0.setName("GG_CARDNAME");
	        dataItemParam0.setFormat("%1$s");
	        dataItem.addDataItemParam(dataItemParam0);
			formItem.setDataItem(dataItem);
			formItem.init();
			iFormItem = formItem;
		}
		this.registerFormItem(iFormItem);
        // srftempmode 
		iFormItem = this.createFormItem("srftempmode");
		if(iFormItem==null)
		{
			EditFormItemModel formItem = new EditFormItemModel();
			formItem.setForm(this);
			formItem.setName("srftempmode");
			formItem.setDEFName("");

			//设置数据项参数
			DataItemModel dataItem = new DataItemModel(); 
			dataItem.setName("srftempmode");
	        dataItem.setFormat("%1$s");
			formItem.setDataItem(dataItem);
			formItem.init();
			iFormItem = formItem;
		}
		this.registerFormItem(iFormItem);
        // srfuf 
		iFormItem = this.createFormItem("srfuf");
		if(iFormItem==null)
		{
			EditFormItemModel formItem = new EditFormItemModel();
			formItem.setForm(this);
			formItem.setName("srfuf");
			formItem.setDEFName("");

			//设置数据项参数
			DataItemModel dataItem = new DataItemModel(); 
			dataItem.setName("srfuf");
	        dataItem.setFormat("%1$s");
			formItem.setDataItem(dataItem);
			formItem.init();
			iFormItem = formItem;
		}
		this.registerFormItem(iFormItem);
        // srfdeid 
		iFormItem = this.createFormItem("srfdeid");
		if(iFormItem==null)
		{
			EditFormItemModel formItem = new EditFormItemModel();
			formItem.setForm(this);
			formItem.setName("srfdeid");
			formItem.setDEFName("");

			//设置数据项参数
			DataItemModel dataItem = new DataItemModel(); 
			dataItem.setName("srfdeid");
	        dataItem.setFormat("%1$s");
			formItem.setDataItem(dataItem);
			formItem.init();
			iFormItem = formItem;
		}
		this.registerFormItem(iFormItem);
        // srfsourcekey 
		iFormItem = this.createFormItem("srfsourcekey");
		if(iFormItem==null)
		{
			EditFormItemModel formItem = new EditFormItemModel();
			formItem.setForm(this);
			formItem.setName("srfsourcekey");
			formItem.setDEFName("");

			//设置数据项参数
			DataItemModel dataItem = new DataItemModel(); 
			dataItem.setName("srfsourcekey");
	        dataItem.setFormat("%1$s");
			formItem.setDataItem(dataItem);
			formItem.init();
			iFormItem = formItem;
		}
		this.registerFormItem(iFormItem);
        // xm 
		iFormItem = this.createFormItem("xm");
		if(iFormItem==null)
		{
			EditFormItemModel formItem = new EditFormItemModel();
			formItem.setForm(this);
			formItem.setName("xm");
			formItem.setDEFName("XM");
			formItem.setCaption("姓名");
			formItem.setCapLanResTag("DEF.LNAME.XM");
			formItem.setAllowEmpty(false);

			//设置数据项参数
			DataItemModel dataItem = new DataItemModel(); 
			dataItem.setName("xm");
	        dataItem.setDataType(25);
	        dataItem.setFormat("%1$s");
			formItem.setDataItem(dataItem);
			formItem.init();
			iFormItem = formItem;
		}
		this.registerFormItem(iFormItem);
        // xb 
		iFormItem = this.createFormItem("xb");
		if(iFormItem==null)
		{
			EditFormItemModel formItem = new EditFormItemModel();
			formItem.setForm(this);
			formItem.setName("xb");
			formItem.setDEFName("XB");
			formItem.setCodeListId("com.sa.litetwo.srv.codelist.CLGG_XBCodeListModel");
			formItem.setCaption("性别");
			formItem.setCapLanResTag("DEF.LNAME.XB");
			formItem.setAllowEmpty(false);
			formItem.setOutputCodeListConfig(true);

			//设置数据项参数
			DataItemModel dataItem = new DataItemModel(); 
			dataItem.setName("xb");
	        dataItem.setDataType(25);
	        dataItem.setFormat("%1$s");
			formItem.setDataItem(dataItem);
			formItem.init();
			iFormItem = formItem;
		}
		this.registerFormItem(iFormItem);
        // qzzt 
		iFormItem = this.createFormItem("qzzt");
		if(iFormItem==null)
		{
			EditFormItemModel formItem = new EditFormItemModel();
			formItem.setForm(this);
			formItem.setName("qzzt");
			formItem.setDEFName("QZZT");
			formItem.setCodeListId("com.sa.litetwo.srv.codelist.CLGG_QZZTCodeListModel");
			formItem.setCaption("求职状态");
			formItem.setCapLanResTag("DEF.LNAME.QZZT");
			formItem.setAllowEmpty(false);
			formItem.setOutputCodeListConfig(true);

			//设置数据项参数
			DataItemModel dataItem = new DataItemModel(); 
			dataItem.setName("qzzt");
	        dataItem.setDataType(25);
	        dataItem.setFormat("%1$s");
			formItem.setDataItem(dataItem);
			formItem.init();
			iFormItem = formItem;
		}
		this.registerFormItem(iFormItem);
        // ksgznf 
		iFormItem = this.createFormItem("ksgznf");
		if(iFormItem==null)
		{
			EditFormItemModel formItem = new EditFormItemModel();
			formItem.setForm(this);
			formItem.setName("ksgznf");
			formItem.setDEFName("KSGZNF");
			formItem.setCaption("开始工作年份");
			formItem.setCapLanResTag("DEF.LNAME.KSGZNF");
			formItem.setAllowEmpty(false);
			formItem.setValueTranslator("DATE|YYYY-MM-DD");

			//设置数据项参数
			DataItemModel dataItem = new DataItemModel(); 
			dataItem.setName("ksgznf");
	        dataItem.setDataType(5);
	        dataItem.setFormat("%1$tY-%1$tm-%1$td");
			formItem.setDataItem(dataItem);
			formItem.init();
			iFormItem = formItem;
		}
		this.registerFormItem(iFormItem);
        // csrq 
		iFormItem = this.createFormItem("csrq");
		if(iFormItem==null)
		{
			EditFormItemModel formItem = new EditFormItemModel();
			formItem.setForm(this);
			formItem.setName("csrq");
			formItem.setDEFName("CSRQ");
			formItem.setCaption("出生日期");
			formItem.setCapLanResTag("DEF.LNAME.CSRQ");
			formItem.setAllowEmpty(false);
			formItem.setValueTranslator("DATE|YYYY-MM-DD");

			//设置数据项参数
			DataItemModel dataItem = new DataItemModel(); 
			dataItem.setName("csrq");
	        dataItem.setDataType(5);
	        dataItem.setFormat("%1$tY-%1$tm-%1$td");
			formItem.setDataItem(dataItem);
			formItem.init();
			iFormItem = formItem;
		}
		this.registerFormItem(iFormItem);
        // sj 
		iFormItem = this.createFormItem("sj");
		if(iFormItem==null)
		{
			EditFormItemModel formItem = new EditFormItemModel();
			formItem.setForm(this);
			formItem.setName("sj");
			formItem.setDEFName("SJ");
			formItem.setCaption("手机");
			formItem.setCapLanResTag("DEF.LNAME.SJ");
			formItem.setAllowEmpty(false);

			//设置数据项参数
			DataItemModel dataItem = new DataItemModel(); 
			dataItem.setName("sj");
	        dataItem.setDataType(25);
	        dataItem.setFormat("%1$s");
			formItem.setDataItem(dataItem);
			formItem.init();
			iFormItem = formItem;
		}
		this.registerFormItem(iFormItem);
        // yx 
		iFormItem = this.createFormItem("yx");
		if(iFormItem==null)
		{
			EditFormItemModel formItem = new EditFormItemModel();
			formItem.setForm(this);
			formItem.setName("yx");
			formItem.setDEFName("YX");
			formItem.setCaption("邮箱");
			formItem.setCapLanResTag("DEF.LNAME.YX");
			formItem.setAllowEmpty(false);

			//设置数据项参数
			DataItemModel dataItem = new DataItemModel(); 
			dataItem.setName("yx");
	        dataItem.setDataType(25);
	        dataItem.setFormat("%1$s");
			formItem.setDataItem(dataItem);
			formItem.init();
			iFormItem = formItem;
		}
		this.registerFormItem(iFormItem);
        // zd 
		iFormItem = this.createFormItem("zd");
		if(iFormItem==null)
		{
			EditFormItemModel formItem = new EditFormItemModel();
			formItem.setForm(this);
			formItem.setName("zd");
			formItem.setDEFName("ZD");
			formItem.setCaption("居住地区");
			formItem.setCapLanResTag("DEF.LNAME.ZD");
			formItem.setAllowEmpty(false);

			//设置数据项参数
			DataItemModel dataItem = new DataItemModel(); 
			dataItem.setName("zd");
	        dataItem.setDataType(25);
	        dataItem.setFormat("%1$s");
			formItem.setDataItem(dataItem);
			formItem.init();
			iFormItem = formItem;
		}
		this.registerFormItem(iFormItem);
        // hkgj 
		iFormItem = this.createFormItem("hkgj");
		if(iFormItem==null)
		{
			EditFormItemModel formItem = new EditFormItemModel();
			formItem.setForm(this);
			formItem.setName("hkgj");
			formItem.setDEFName("HKGJ");
			formItem.setCaption("籍贯");
			formItem.setCapLanResTag("CONTROL.DEFORM.GG_CARD.MAIN2.FORMITEM.HKGJ");
			formItem.setAllowEmpty(false);

			//设置数据项参数
			DataItemModel dataItem = new DataItemModel(); 
			dataItem.setName("hkgj");
	        dataItem.setDataType(25);
	        dataItem.setFormat("%1$s");
			formItem.setDataItem(dataItem);
			formItem.init();
			iFormItem = formItem;
		}
		this.registerFormItem(iFormItem);
        // hyzt 
		iFormItem = this.createFormItem("hyzt");
		if(iFormItem==null)
		{
			EditFormItemModel formItem = new EditFormItemModel();
			formItem.setForm(this);
			formItem.setName("hyzt");
			formItem.setDEFName("HYZT");
			formItem.setCodeListId("com.sa.litetwo.srv.codelist.CLGG_HYZTCodeListModel");
			formItem.setCaption("婚姻状态");
			formItem.setCapLanResTag("DEF.LNAME.HYZT");
			formItem.setAllowEmpty(false);
			formItem.setOutputCodeListConfig(true);

			//设置数据项参数
			DataItemModel dataItem = new DataItemModel(); 
			dataItem.setName("hyzt");
	        dataItem.setDataType(25);
	        dataItem.setFormat("%1$s");
			formItem.setDataItem(dataItem);
			formItem.init();
			iFormItem = formItem;
		}
		this.registerFormItem(iFormItem);
        // zgxl 
		iFormItem = this.createFormItem("zgxl");
		if(iFormItem==null)
		{
			EditFormItemModel formItem = new EditFormItemModel();
			formItem.setForm(this);
			formItem.setName("zgxl");
			formItem.setDEFName("ZGXL");
			formItem.setCodeListId("com.sa.litetwo.srv.codelist.CLGG_XLXWCodeListModel");
			formItem.setCaption("第一学历");
			formItem.setCapLanResTag("CONTROL.DEFORM.GG_CARD.MAIN2.FORMITEM.ZGXL");
			formItem.setAllowEmpty(false);
			formItem.setOutputCodeListConfig(true);

			//设置数据项参数
			DataItemModel dataItem = new DataItemModel(); 
			dataItem.setName("zgxl");
	        dataItem.setDataType(25);
	        dataItem.setFormat("%1$s");
			formItem.setDataItem(dataItem);
			formItem.init();
			iFormItem = formItem;
		}
		this.registerFormItem(iFormItem);
        // zp 
		iFormItem = this.createFormItem("zp");
		if(iFormItem==null)
		{
			EditFormItemModel formItem = new EditFormItemModel();
			formItem.setForm(this);
			formItem.setName("zp");
			formItem.setDEFName("ZP");
			formItem.setCaption("照片");
			formItem.setCapLanResTag("DEF.LNAME.ZP");

			//设置数据项参数
			DataItemModel dataItem = new DataItemModel(); 
			dataItem.setName("zp");
	        dataItem.setDataType(25);
	        dataItem.setFormat("%1$s");
			formItem.setDataItem(dataItem);
			formItem.init();
			iFormItem = formItem;
		}
		this.registerFormItem(iFormItem);
        // qwnx 
		iFormItem = this.createFormItem("qwnx");
		if(iFormItem==null)
		{
			EditFormItemModel formItem = new EditFormItemModel();
			formItem.setForm(this);
			formItem.setName("qwnx");
			formItem.setDEFName("QWNX");
			formItem.setCaption("期望月薪");
			formItem.setCapLanResTag("DEF.LNAME.QWNX");
			formItem.setAllowEmpty(false);

			//设置数据项参数
			DataItemModel dataItem = new DataItemModel(); 
			dataItem.setName("qwnx");
	        dataItem.setDataType(25);
	        dataItem.setFormat("%1$s");
			formItem.setDataItem(dataItem);
			formItem.init();
			iFormItem = formItem;
		}
		this.registerFormItem(iFormItem);
        // dd 
		iFormItem = this.createFormItem("dd");
		if(iFormItem==null)
		{
			EditFormItemModel formItem = new EditFormItemModel();
			formItem.setForm(this);
			formItem.setName("dd");
			formItem.setDEFName("DD");
			formItem.setCaption("地点");
			formItem.setCapLanResTag("DEF.LNAME.DD");
			formItem.setAllowEmpty(false);

			//设置数据项参数
			DataItemModel dataItem = new DataItemModel(); 
			dataItem.setName("dd");
	        dataItem.setDataType(25);
	        dataItem.setFormat("%1$s");
			formItem.setDataItem(dataItem);
			formItem.init();
			iFormItem = formItem;
		}
		this.registerFormItem(iFormItem);
        // dgsj 
		iFormItem = this.createFormItem("dgsj");
		if(iFormItem==null)
		{
			EditFormItemModel formItem = new EditFormItemModel();
			formItem.setForm(this);
			formItem.setName("dgsj");
			formItem.setDEFName("DGSJ");
			formItem.setCodeListId("com.sa.litetwo.srv.codelist.CLGG_DGSJCodeListModel");
			formItem.setCaption("到岗时间");
			formItem.setCapLanResTag("DEF.LNAME.DGSJ");
			formItem.setAllowEmpty(false);
			formItem.setOutputCodeListConfig(true);

			//设置数据项参数
			DataItemModel dataItem = new DataItemModel(); 
			dataItem.setName("dgsj");
	        dataItem.setDataType(9);
	        dataItem.setFormat("%1$s");
			formItem.setDataItem(dataItem);
			formItem.init();
			iFormItem = formItem;
		}
		this.registerFormItem(iFormItem);
        // gzlx 
		iFormItem = this.createFormItem("gzlx");
		if(iFormItem==null)
		{
			EditFormItemModel formItem = new EditFormItemModel();
			formItem.setForm(this);
			formItem.setName("gzlx");
			formItem.setDEFName("GZLX");
			formItem.setCodeListId("com.sa.litetwo.srv.codelist.CLGG_GZLXCodeListModel");
			formItem.setCaption("工作类型");
			formItem.setCapLanResTag("DEF.LNAME.GZLX");
			formItem.setOutputCodeListConfig(true);

			//设置数据项参数
			DataItemModel dataItem = new DataItemModel(); 
			dataItem.setName("gzlx");
	        dataItem.setDataType(25);
	        dataItem.setFormat("%1$s");
			formItem.setDataItem(dataItem);
			formItem.init();
			iFormItem = formItem;
		}
		this.registerFormItem(iFormItem);
        // hy 
		iFormItem = this.createFormItem("hy");
		if(iFormItem==null)
		{
			EditFormItemModel formItem = new EditFormItemModel();
			formItem.setForm(this);
			formItem.setName("hy");
			formItem.setDEFName("HY");
			formItem.setUpdateDV("房地产");
			formItem.setCodeListId("com.sa.litetwo.srv.codelist.CLGG_HYCodeListModel");
			formItem.setCaption("行业");
			formItem.setCapLanResTag("DEF.LNAME.HY");
			formItem.setAllowEmpty(false);
			formItem.setOutputCodeListConfig(true);

			//设置数据项参数
			DataItemModel dataItem = new DataItemModel(); 
			dataItem.setName("hy");
	        dataItem.setDataType(25);
	        dataItem.setFormat("%1$s");
			formItem.setDataItem(dataItem);
			formItem.init();
			iFormItem = formItem;
		}
		this.registerFormItem(iFormItem);
        // zn_fdc 
		iFormItem = this.createFormItem("zn_fdc");
		if(iFormItem==null)
		{
			EditFormItemModel formItem = new EditFormItemModel();
			formItem.setForm(this);
			formItem.setName("zn_fdc");
			formItem.setDEFName("ZN_FDC");
			formItem.setCodeListId("com.sa.litetwo.srv.codelist.CLGG_ZN_FDCCodeListModel");
			formItem.setCaption("职能类别");
			formItem.setCapLanResTag("CONTROL.DEFORM.GG_CARD.MAIN2.FORMITEM.ZN_FDC");
			formItem.setOutputCodeListConfig(true);

			//设置数据项参数
			DataItemModel dataItem = new DataItemModel(); 
			dataItem.setName("zn_fdc");
	        dataItem.setDataType(25);
	        dataItem.setFormat("%1$s");
			formItem.setDataItem(dataItem);
			formItem.init();
			iFormItem = formItem;
		}
		this.registerFormItem(iFormItem);
        // zn_hlw 
		iFormItem = this.createFormItem("zn_hlw");
		if(iFormItem==null)
		{
			EditFormItemModel formItem = new EditFormItemModel();
			formItem.setForm(this);
			formItem.setName("zn_hlw");
			formItem.setDEFName("ZN_HLW");
			formItem.setCodeListId("com.sa.litetwo.srv.codelist.CLGG_ZN_HLWCodeListModel");
			formItem.setCaption("职能类别");
			formItem.setCapLanResTag("CONTROL.DEFORM.GG_CARD.MAIN2.FORMITEM.ZN_HLW");
			formItem.setOutputCodeListConfig(true);

			//设置数据项参数
			DataItemModel dataItem = new DataItemModel(); 
			dataItem.setName("zn_hlw");
	        dataItem.setDataType(25);
	        dataItem.setFormat("%1$s");
			formItem.setDataItem(dataItem);
			formItem.init();
			iFormItem = formItem;
		}
		this.registerFormItem(iFormItem);
        // zn_jryh 
		iFormItem = this.createFormItem("zn_jryh");
		if(iFormItem==null)
		{
			EditFormItemModel formItem = new EditFormItemModel();
			formItem.setForm(this);
			formItem.setName("zn_jryh");
			formItem.setDEFName("ZN_JRYH");
			formItem.setCodeListId("com.sa.litetwo.srv.codelist.CLGG_ZN_JRYHCodeListModel");
			formItem.setCaption("职能类别");
			formItem.setCapLanResTag("CONTROL.DEFORM.GG_CARD.MAIN2.FORMITEM.ZN_JRYH");
			formItem.setOutputCodeListConfig(true);

			//设置数据项参数
			DataItemModel dataItem = new DataItemModel(); 
			dataItem.setName("zn_jryh");
	        dataItem.setDataType(25);
	        dataItem.setFormat("%1$s");
			formItem.setDataItem(dataItem);
			formItem.init();
			iFormItem = formItem;
		}
		this.registerFormItem(iFormItem);
        // zn_jxzz 
		iFormItem = this.createFormItem("zn_jxzz");
		if(iFormItem==null)
		{
			EditFormItemModel formItem = new EditFormItemModel();
			formItem.setForm(this);
			formItem.setName("zn_jxzz");
			formItem.setDEFName("ZN_JXZZ");
			formItem.setCodeListId("com.sa.litetwo.srv.codelist.CLGG_ZN_JXZZCodeListModel");
			formItem.setCaption("职能类别");
			formItem.setCapLanResTag("CONTROL.DEFORM.GG_CARD.MAIN2.FORMITEM.ZN_JXZZ");
			formItem.setOutputCodeListConfig(true);

			//设置数据项参数
			DataItemModel dataItem = new DataItemModel(); 
			dataItem.setName("zn_jxzz");
	        dataItem.setDataType(25);
	        dataItem.setFormat("%1$s");
			formItem.setDataItem(dataItem);
			formItem.init();
			iFormItem = formItem;
		}
		this.registerFormItem(iFormItem);
        // zn_swyy 
		iFormItem = this.createFormItem("zn_swyy");
		if(iFormItem==null)
		{
			EditFormItemModel formItem = new EditFormItemModel();
			formItem.setForm(this);
			formItem.setName("zn_swyy");
			formItem.setDEFName("ZN_SWYY");
			formItem.setCodeListId("com.sa.litetwo.srv.codelist.CLGG_ZN_SWYYCodeListModel");
			formItem.setCaption("职能类别");
			formItem.setCapLanResTag("CONTROL.DEFORM.GG_CARD.MAIN2.FORMITEM.ZN_SWYY");
			formItem.setOutputCodeListConfig(true);

			//设置数据项参数
			DataItemModel dataItem = new DataItemModel(); 
			dataItem.setName("zn_swyy");
	        dataItem.setDataType(25);
	        dataItem.setFormat("%1$s");
			formItem.setDataItem(dataItem);
			formItem.init();
			iFormItem = formItem;
		}
		this.registerFormItem(iFormItem);
        // zn_syls 
		iFormItem = this.createFormItem("zn_syls");
		if(iFormItem==null)
		{
			EditFormItemModel formItem = new EditFormItemModel();
			formItem.setForm(this);
			formItem.setName("zn_syls");
			formItem.setDEFName("ZN_SYLS");
			formItem.setCodeListId("com.sa.litetwo.srv.codelist.CLGG_ZN_SYLSCodeListModel");
			formItem.setCaption("职能类别");
			formItem.setCapLanResTag("CONTROL.DEFORM.GG_CARD.MAIN2.FORMITEM.ZN_SYLS");
			formItem.setOutputCodeListConfig(true);

			//设置数据项参数
			DataItemModel dataItem = new DataItemModel(); 
			dataItem.setName("zn_syls");
	        dataItem.setDataType(25);
	        dataItem.setFormat("%1$s");
			formItem.setDataItem(dataItem);
			formItem.init();
			iFormItem = formItem;
		}
		this.registerFormItem(iFormItem);
        // mqnsr 
		iFormItem = this.createFormItem("mqnsr");
		if(iFormItem==null)
		{
			EditFormItemModel formItem = new EditFormItemModel();
			formItem.setForm(this);
			formItem.setName("mqnsr");
			formItem.setDEFName("MQNSR");
			formItem.setCaption("目前年收入");
			formItem.setCapLanResTag("DEF.LNAME.MQNSR");
			formItem.setAllowEmpty(false);

			//设置数据项参数
			DataItemModel dataItem = new DataItemModel(); 
			dataItem.setName("mqnsr");
	        dataItem.setDataType(25);
	        dataItem.setFormat("%1$s");
			formItem.setDataItem(dataItem);
			formItem.init();
			iFormItem = formItem;
		}
		this.registerFormItem(iFormItem);
        // jbgz 
		iFormItem = this.createFormItem("jbgz");
		if(iFormItem==null)
		{
			EditFormItemModel formItem = new EditFormItemModel();
			formItem.setForm(this);
			formItem.setName("jbgz");
			formItem.setDEFName("JBGZ");
			formItem.setCaption("基本工资");
			formItem.setCapLanResTag("DEF.LNAME.JBGZ");

			//设置数据项参数
			DataItemModel dataItem = new DataItemModel(); 
			dataItem.setName("jbgz");
	        dataItem.setDataType(25);
	        dataItem.setFormat("%1$s");
			formItem.setDataItem(dataItem);
			formItem.init();
			iFormItem = formItem;
		}
		this.registerFormItem(iFormItem);
        // btjt 
		iFormItem = this.createFormItem("btjt");
		if(iFormItem==null)
		{
			EditFormItemModel formItem = new EditFormItemModel();
			formItem.setForm(this);
			formItem.setName("btjt");
			formItem.setDEFName("BTJT");
			formItem.setCaption("补贴津贴");
			formItem.setCapLanResTag("DEF.LNAME.BTJT");

			//设置数据项参数
			DataItemModel dataItem = new DataItemModel(); 
			dataItem.setName("btjt");
	        dataItem.setDataType(25);
	        dataItem.setFormat("%1$s");
			formItem.setDataItem(dataItem);
			formItem.init();
			iFormItem = formItem;
		}
		this.registerFormItem(iFormItem);
        // jjyj 
		iFormItem = this.createFormItem("jjyj");
		if(iFormItem==null)
		{
			EditFormItemModel formItem = new EditFormItemModel();
			formItem.setForm(this);
			formItem.setName("jjyj");
			formItem.setDEFName("JJYJ");
			formItem.setCaption("奖金佣金");
			formItem.setCapLanResTag("DEF.LNAME.JJYJ");

			//设置数据项参数
			DataItemModel dataItem = new DataItemModel(); 
			dataItem.setName("jjyj");
	        dataItem.setDataType(25);
	        dataItem.setFormat("%1$s");
			formItem.setDataItem(dataItem);
			formItem.init();
			iFormItem = formItem;
		}
		this.registerFormItem(iFormItem);
        // gqsy 
		iFormItem = this.createFormItem("gqsy");
		if(iFormItem==null)
		{
			EditFormItemModel formItem = new EditFormItemModel();
			formItem.setForm(this);
			formItem.setName("gqsy");
			formItem.setDEFName("GQSY");
			formItem.setCaption("股权收益");
			formItem.setCapLanResTag("DEF.LNAME.GQSY");

			//设置数据项参数
			DataItemModel dataItem = new DataItemModel(); 
			dataItem.setName("gqsy");
	        dataItem.setDataType(25);
	        dataItem.setFormat("%1$s");
			formItem.setDataItem(dataItem);
			formItem.init();
			iFormItem = formItem;
		}
		this.registerFormItem(iFormItem);
        // ytjqy 
		iFormItem = this.createFormItem("ytjqy");
		if(iFormItem==null)
		{
			EditFormItemModel formItem = new EditFormItemModel();
			formItem.setForm(this);
			formItem.setName("ytjqy");
			formItem.setDEFName("YTJQY");
			formItem.setCaption("已推荐企业");
			formItem.setCapLanResTag("DEF.LNAME.YTJQY");

			//设置数据项参数
			DataItemModel dataItem = new DataItemModel(); 
			dataItem.setName("ytjqy");
	        dataItem.setDataType(25);
	        dataItem.setFormat("%1$s");
			formItem.setDataItem(dataItem);
			formItem.init();
			iFormItem = formItem;
		}
		this.registerFormItem(iFormItem);
        // tjgwszcs 
		iFormItem = this.createFormItem("tjgwszcs");
		if(iFormItem==null)
		{
			EditFormItemModel formItem = new EditFormItemModel();
			formItem.setForm(this);
			formItem.setName("tjgwszcs");
			formItem.setDEFName("TJGWSZCS");
			formItem.setCaption("岗位所在城市");
			formItem.setCapLanResTag("CONTROL.DEFORM.GG_CARD.MAIN2.FORMITEM.TJGWSZCS");

			//设置数据项参数
			DataItemModel dataItem = new DataItemModel(); 
			dataItem.setName("tjgwszcs");
	        dataItem.setDataType(25);
	        dataItem.setFormat("%1$s");
			formItem.setDataItem(dataItem);
			formItem.init();
			iFormItem = formItem;
		}
		this.registerFormItem(iFormItem);
        // tjsj 
		iFormItem = this.createFormItem("tjsj");
		if(iFormItem==null)
		{
			EditFormItemModel formItem = new EditFormItemModel();
			formItem.setForm(this);
			formItem.setName("tjsj");
			formItem.setDEFName("TJSJ");
			formItem.setCaption("推荐时间");
			formItem.setCapLanResTag("DEF.LNAME.TJSJ");
			formItem.setValueTranslator("DATE|YYYY-MM-DD");

			//设置数据项参数
			DataItemModel dataItem = new DataItemModel(); 
			dataItem.setName("tjsj");
	        dataItem.setDataType(5);
	        dataItem.setFormat("%1$tY-%1$tm-%1$td");
			formItem.setDataItem(dataItem);
			formItem.init();
			iFormItem = formItem;
		}
		this.registerFormItem(iFormItem);
        // createdate 
		iFormItem = this.createFormItem("createdate");
		if(iFormItem==null)
		{
			EditFormItemModel formItem = new EditFormItemModel();
			formItem.setForm(this);
			formItem.setName("createdate");
			formItem.setDEFName("CREATEDATE");
			formItem.setCaption("建立时间");
			formItem.setCapLanResTag("DEF.LNAME.CREATEDATE");

			//设置数据项参数
			DataItemModel dataItem = new DataItemModel(); 
			dataItem.setName("createdate");
	        dataItem.setDataType(5);
	        dataItem.setFormat("%1$tY-%1$tm-%1$td %1$tH:%1$tM:%1$tS");
			formItem.setDataItem(dataItem);
			formItem.init();
			iFormItem = formItem;
		}
		this.registerFormItem(iFormItem);
        // createman 
		iFormItem = this.createFormItem("createman");
		if(iFormItem==null)
		{
			EditFormItemModel formItem = new EditFormItemModel();
			formItem.setForm(this);
			formItem.setName("createman");
			formItem.setDEFName("CREATEMAN");
			formItem.setIgnoreInput(3);
			formItem.setCodeListId("com.sa.litetwo.srv.codelist.SysOperatorCodeListModel");
			formItem.setCaption("建立人");
			formItem.setCapLanResTag("DEF.LNAME.CREATEMAN");

			//设置数据项参数
			DataItemModel dataItem = new DataItemModel(); 
			dataItem.setName("createman");
	        dataItem.setDataType(25);
	        dataItem.setFormat("%1$s");
			dataItem.setCodeListId("com.sa.litetwo.srv.codelist.SysOperatorCodeListModel");
			formItem.setDataItem(dataItem);
			formItem.init();
			iFormItem = formItem;
		}
		this.registerFormItem(iFormItem);
        // updatedate 
		iFormItem = this.createFormItem("updatedate");
		if(iFormItem==null)
		{
			EditFormItemModel formItem = new EditFormItemModel();
			formItem.setForm(this);
			formItem.setName("updatedate");
			formItem.setDEFName("UPDATEDATE");
			formItem.setCaption("更新时间");
			formItem.setCapLanResTag("DEF.LNAME.UPDATEDATE");

			//设置数据项参数
			DataItemModel dataItem = new DataItemModel(); 
			dataItem.setName("updatedate");
	        dataItem.setDataType(5);
	        dataItem.setFormat("%1$tY-%1$tm-%1$td %1$tH:%1$tM:%1$tS");
			formItem.setDataItem(dataItem);
			formItem.init();
			iFormItem = formItem;
		}
		this.registerFormItem(iFormItem);
        // updateman 
		iFormItem = this.createFormItem("updateman");
		if(iFormItem==null)
		{
			EditFormItemModel formItem = new EditFormItemModel();
			formItem.setForm(this);
			formItem.setName("updateman");
			formItem.setDEFName("UPDATEMAN");
			formItem.setIgnoreInput(3);
			formItem.setCodeListId("com.sa.litetwo.srv.codelist.SysOperatorCodeListModel");
			formItem.setCaption("更新人");
			formItem.setCapLanResTag("DEF.LNAME.UPDATEMAN");

			//设置数据项参数
			DataItemModel dataItem = new DataItemModel(); 
			dataItem.setName("updateman");
	        dataItem.setDataType(25);
	        dataItem.setFormat("%1$s");
			dataItem.setCodeListId("com.sa.litetwo.srv.codelist.SysOperatorCodeListModel");
			formItem.setDataItem(dataItem);
			formItem.init();
			iFormItem = formItem;
		}
		this.registerFormItem(iFormItem);
        // gg_cardid 
		iFormItem = this.createFormItem("gg_cardid");
		if(iFormItem==null)
		{
			EditFormItemModel formItem = new EditFormItemModel();
			formItem.setForm(this);
			formItem.setName("gg_cardid");
			formItem.setDEFName("GG_CARDID");
			formItem.setCaption("信息卡标识");
			formItem.setCapLanResTag("DEF.LNAME.GG_CARDID");

			//设置数据项参数
			DataItemModel dataItem = new DataItemModel(); 
			dataItem.setName("gg_cardid");
	        dataItem.setDataType(25);
	        dataItem.setFormat("%1$s");
			formItem.setDataItem(dataItem);
			formItem.init();
			iFormItem = formItem;
		}
		this.registerFormItem(iFormItem);
        	
    }
    
    /**
     * 填充表单值
     * @param iDataObject
     * @param bUpdate
     * @param bIgnoreEmpty
     * @param formError
     * @throws Exception
     */
    @Override
    protected void onFillInputValues(IDataObject iDataObject,boolean bUpdate,boolean bIgnoreEmpty,FormError formError)throws Exception
    {
    	  super.onFillInputValues(iDataObject,bUpdate,bIgnoreEmpty,formError);
          if(formError.hasError())
              return;

          if(!bIgnoreEmpty){
Object _hy=iDataObject.get("hy");
if(!(DataTypeHelper.testCond(_hy,"NOTEQ","房地产/建筑"))&&(iDataObject.get("zn_fdc")==null)){
IFormItem iFormItem = this.getFormItem("zn_fdc");
formError.register(iFormItem.getName(), iFormItem.getCaption(), iFormItem.getCapLanId(), FormItemError.ERROR_EMPTY,getFormItemErrorInfo(iFormItem, FormItemError.ERROR_EMPTY));
}
}

          if(!bIgnoreEmpty){
Object _hy=iDataObject.get("hy");
if(!(DataTypeHelper.testCond(_hy,"NOTEQ","互联网/IT"))&&(iDataObject.get("zn_hlw")==null)){
IFormItem iFormItem = this.getFormItem("zn_hlw");
formError.register(iFormItem.getName(), iFormItem.getCaption(), iFormItem.getCapLanId(), FormItemError.ERROR_EMPTY,getFormItemErrorInfo(iFormItem, FormItemError.ERROR_EMPTY));
}
}

          if(!bIgnoreEmpty){
Object _hy=iDataObject.get("hy");
if(!(DataTypeHelper.testCond(_hy,"NOTEQ","金融银行"))&&(iDataObject.get("zn_jryh")==null)){
IFormItem iFormItem = this.getFormItem("zn_jryh");
formError.register(iFormItem.getName(), iFormItem.getCaption(), iFormItem.getCapLanId(), FormItemError.ERROR_EMPTY,getFormItemErrorInfo(iFormItem, FormItemError.ERROR_EMPTY));
}
}

          if(!bIgnoreEmpty){
Object _hy=iDataObject.get("hy");
if(!(DataTypeHelper.testCond(_hy,"NOTEQ","机械制造"))&&(iDataObject.get("zn_jxzz")==null)){
IFormItem iFormItem = this.getFormItem("zn_jxzz");
formError.register(iFormItem.getName(), iFormItem.getCaption(), iFormItem.getCapLanId(), FormItemError.ERROR_EMPTY,getFormItemErrorInfo(iFormItem, FormItemError.ERROR_EMPTY));
}
}

          if(!bIgnoreEmpty){
Object _hy=iDataObject.get("hy");
if(!(DataTypeHelper.testCond(_hy,"NOTEQ","生物医药"))&&(iDataObject.get("zn_swyy")==null)){
IFormItem iFormItem = this.getFormItem("zn_swyy");
formError.register(iFormItem.getName(), iFormItem.getCaption(), iFormItem.getCapLanId(), FormItemError.ERROR_EMPTY,getFormItemErrorInfo(iFormItem, FormItemError.ERROR_EMPTY));
}
}

          if(!bIgnoreEmpty){
Object _hy=iDataObject.get("hy");
if(!(DataTypeHelper.testCond(_hy,"NOTEQ","商业零售"))&&(iDataObject.get("zn_syls")==null)){
IFormItem iFormItem = this.getFormItem("zn_syls");
formError.register(iFormItem.getName(), iFormItem.getCaption(), iFormItem.getCapLanId(), FormItemError.ERROR_EMPTY,getFormItemErrorInfo(iFormItem, FormItemError.ERROR_EMPTY));
}
}

 
    }
    @Override
    protected void onTestValueRule(IService iService, IDataObject iDataObject, boolean bUpdate,EntityError entityError) throws Exception
	{
		EntityFieldError entityFieldError = null;
		super.onTestValueRule( iService,  iDataObject,  bUpdate, entityError) ;
	}
}